#include<reg52.h>
#include<intrins.h>
#define LED P2

void delay_tenus(int time)
{
	while(time--);
}
void main()
{
	char i = 0;
	LED = 0xfe;
	delay_tenus(30000);
	//char i = 0;
	while(1)
	{
		for(i = 0; i < 7; i++)
		{
			LED = _crol_(LED, 1);
			delay_tenus(30000);
		}
		for(i = 0; i < 7; i++)
		{
			LED = _cror_(LED, 1);
			delay_tenus(30000);
		}
	}
}